package sf.silly;


public class Find {

    public <T> boolean in(T needle, T... haystack) {
        for (T possible : haystack) {
            if (needle == null) {
                if (possible == null) return true;
                continue;
            }
            if (needle.equals(possible)) return true;
        }
        return false;
    }

}
